package kr.cadis.clms.util;

import java.util.Calendar;

public class Util {
	public static String makeStringDate(Calendar myCalender) {
		String strDate = myCalender.get(Calendar.YEAR) + "-" 
						+ (myCalender.get(Calendar.MONTH) + 1) + "-" 
						+ myCalender.get(Calendar.DATE);
				
		return strDate;		
	}
	
	public static String makeDayOfWeekToKorean(int intDayOfWeek) {
		String dayOfWeek = null;		
	
		switch(intDayOfWeek) {
		case 1: 
			dayOfWeek = "일"; break;
		case 2: 
			dayOfWeek = "월"; break;
		case 3: 
			dayOfWeek = "화"; break;
		case 4: 
			dayOfWeek = "수"; break;
		case 5: 
			dayOfWeek = "목"; break;
		case 6: 
			dayOfWeek = "금"; break;
		case 7: 
			dayOfWeek = "토"; break;
		}
		
		return dayOfWeek;
	}
}
